package TwoDay;

/**
 *  输入任意一个多位的浮点型数，要求保留3位有效数字，并且从第四位
 *  进行四舍五入
 *      45.785756
 *        45.7860000
 *        算法/思路
 *           45.785756*1000
 *             45785.756+0.5
 *               (int)(45786.756)
 *                  45786/1000.
 */
public class FirstMainCode {
    public static void main(String[] args) {
            double a=3.5;
            double b=4.8;
            double c=a+b;
        System.out.println("a+b = " + (a + b));
        System.out.println("c = " + c);
    }
}
